@extends('back_end.layouts.default')

@section('container')

<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12" style="min-height: 100px;">
    </div>
</div>
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        @include('back_end.layouts.notifications')
    </div>
</div>
<div class="row">
    <div class="col-lg-5 col-md-4 col-xs-1"></div>
    <div class="col-lg-2 col-md-4 col-xs-10">
        {{ Form::open(array('action' => 'BackIndexController@doLogin')) }}
        <fieldset>
            <div class="form-group" style="min-height: initial; ">
                {{ Form::label('email', '用户名') }}
                {{ Form::text('username', Input::old('email'), array('class'=>'form-control','tabindex'=>'1','placeholder'=>'用户名')) }}
            </div>
            <div class="form-group" style="min-height: initial; ">
                <label for="password">
                    密码
                    <small>
                        <a href="{{{ URL::to('/users/forgot_password') }}}">{{{ Lang::get('confide::confide.login.forgot_password') }}}</a>
                    </small>
                </label>
                {{ Form::password('password', array('class'=>'form-control','tabindex'=>'2','placeholder'=>'密码')) }}
            </div>
            <div class="form-group" style="min-height: initial; ">
                <label for="remember" class="checkbox">记住登录信息
                    <input type="hidden" name="remember" value="0">
                    <input tabindex="4" type="checkbox" name="remember" id="remember" value="1">
                </label>
            </div>

            @if (Session::get('notice'))
            <div class="alert">{{{ Session::get('notice') }}}</div>
            @endif
            <div class="form-group row" style="min-height: initial; ">
                <div class="col-lg-1 col-md-4 col-xs-2"></div>
                <div class="col-lg-9 col-md-4 col-xs-8">
                {{ Form::submit('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;登&nbsp;&nbsp;&nbsp;录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', array("tabindex"=>"3", "name"=>"submit", "class"=>"btn btn-block btn-success")) }}
                </div>
                <div class="col-lg-2 col-md-4 col-xs-2"></div>
            </div>
        </fieldset>
        {{ Form::close() }}
    </div>
    <div class="col-lg-5 col-md-4 col-xs-1"></div>
</div>
@stop